<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2022/11/22
  Time: 14:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/aboutLogin.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" media="all">
    <link href="//fonts.googleapis.com/css?family=Mukta:300,400,500" rel="stylesheet">
    <title>注册</title>
</head>
<body>
<%--注册失败的警告信息--%>
    <%
        Object message=request.getAttribute("message");
        if(message!=null&&!"".equals(message))
        {%>
        <script type="text/javascript">
            alert("<%=message%>");
        </script>
        <%}%>
    <script type="text/javascript">
        document.getElementById("form").action = "";
    </script>
    <%--注册框--%>
    <section class="main">
        <div class="w3lhny-register">
            <div class="iconhny">
                <span class="fa fa-user-plus"></span>
            </div>
            <form action="/register" method="post" class="register-form" id="form">
                <fieldset>
                    <div class="form">
                        <div class="form-row">
                            <span class="fa fa-user"></span>
                            <input type="text" class="form-text" placeholder="Name" required="" name="name">
                        </div>
                        <div class="form-row">
                            <span class="fa fa-lock"></span>
                            <input type="password" class="form-text" placeholder="Password" required="" name="pwd">
                        </div>
                        <div class="form-row">
                            <span class="fa fa-lock"></span>
                            <input type="password" class="form-text" placeholder="doublePassword" required="" name="doublePwd">
                        </div>
                        <div class="form-row">
                            <span class="fa fa-lock"></span>
                            <input type="email" class="form-text" placeholder="email" required="" name="email">
                        </div>
                        <div class="form-row button-login">
                            <button class="btn btn-login" id="submitBt">注册</button>
                        </div>
                    </div>
                </fieldset>
            </form>
            <p class="already"><a href="login.jsp"> <img src="images/return.png" class="returnIco">已有账号？点此登录</a></p>
        </div>
    </section>
</body>
</html>